using System;
using System.Globalization;
using System.Windows.Data;

namespace Samurai.Client.Converters
{
    public class ArrayDataConverter : IValueConverter
    {
        #region Implementation of IValueConverter

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var strValues = (string[]) value;

            return string.Join(",", strValues);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}